import { defineStore } from "pinia";

interface ReportState {
  previewData: any;
}

export const useReportModelConfigStore = defineStore("ReportModelConfig", {
  state: (): ReportState => ({
    previewData: null,
  }),

  actions: {
    setPreviewData(data: any) {
      this.previewData = data;
    },

    clearPreviewData() {
      this.previewData = null;
    },
  },
});
